package com.zy.business.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 访客记录表
 * @author: whf
 * @create: 2022-03-17 17:06
 **/
@ApiModel
@Data
@TableName("tb_visitor_record")
public class TbVisitorRecord implements Serializable {

    private static final long serialVersionUID =  -1L;

    @TableId("record_id")
    private Long recordId;

    /*@ApiModelProperty(value = "访客id")
    private Long visitorId;*/

    /*@ApiModelProperty(value = "拜访用户id")
    private Long visitUserId;*/

    @ApiModelProperty(value = "拜访时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date visitTime;

    @ApiModelProperty(value = "拜访事由")
    private String visitReason;

    /*@ApiModelProperty(value = "状态（0.审核中1.通过2.拒绝）")
    private Integer state;*/

    /*@ApiModelProperty(value = "拒绝原因")
    private String rejectionReason;*/

    @ApiModelProperty(value = "访客姓名")
    private String visitorName;

    /*@ApiModelProperty(value = "访客照片")
    @TableField(exist = false)
    private String photo;*/

    @ApiModelProperty(value = "联系电话")
    private String phone;

    /*@ApiModelProperty(value = "身份证号")
    @TableField(exist = false)
    private String idCard;*/

    @ApiModelProperty(value = "公司名称")
    private String companyName;

    @ApiModelProperty(value = "部门")
    private String deptName;

    @ApiModelProperty(value = "职位")
    private String position;

    @ApiModelProperty(value = "openid")
    private String openId;

    /*@ApiModelProperty(value = "拜访用户名")
    @TableField(exist = false)
    private String visitUserName;

    @ApiModelProperty(value = "拜访事由名称")
    @TableField(exist = false)
    private String visitReasonName;

    @ApiModelProperty(value = "是否作废")
    private Integer isInvalid;

    @TableField(exist = false)
    private Integer isBlack;

    @ApiModelProperty(value = "是否是预约(1是0否)")
    private Integer isReserve;*/

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;


    /**
     * 更新时间
     */
    /*@TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    @ApiModelProperty(hidden = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;*/


    /**
     * 删除标志0未删除1已删除
     */
    /*@TableLogic
    @TableField(value = "del_flag")
    @ApiModelProperty(hidden = true)
    private String delFlag;*/

}
